// pages/home/home.js
Page({
  data: {
    /**轮播图数据接口 */
    movies:[  
      {url:'http://i2.tiimg.com/728020/f9f2224c94afc3e0.jpg'} ,  
      {url:'http://i2.tiimg.com/728020/bded9e4c6763d2c4.jpg'} ,  
      {url:' http://i1.fuimg.com/728020/2f32cee9d47f5fd5.gif'} ,  
      ],
  
    /**智能产品  电脑服务 宠物宝贝 */
    maifangImg: [{
        img: 'http://i2.tiimg.com/728020/1283cdb297043ffe.jpg',
        title: '智能家具'
      },
      {
        img: 'http://i2.tiimg.com/728020/6fcb27856ebb77bd.jpg',
        title: '电脑服务'
      },
      {
        img: 'http://i1.fuimg.com/728020/fc0898ddf36d6bcc.jpg',
        title: '宠物宝贝'
      },
      {
        img: 'http://i1.fuimg.com/728020/99cb40d4d53f7bbd.png',
        title: '互助跑腿'
      },
      {
        img: 'http://i1.fuimg.com/728020/29ed934a5a1e3f66.jpg',
        title: '神童计划'
      },
      {
        img: 'http://i2.tiimg.com/728020/2f0b540d646da998.jpg',
        title: '旅游分享'
      },
      {
        img: 'http://i1.fuimg.com/728020/1afeb39b69b87901.jpg',
        title: '社团活动'
      },
      {
        img: 'http://i2.tiimg.com/728020/e03395dcd8c36ff0.jpg',
        title: '英语交流'
      }
    ], 
    /**客服数据接口 */
    KeHuItme: [{
        title: "签约服务网点",
        txt: "一触即达,分分钟解决你的"
      },
      {
        title: "客户电话",
        txt: "400-890-88900"
      }
    ],
  },
  gotoSelf: function (e) {
    var num = e.currentTarget.dataset.index;
    if (num == 0) {
      wx.navigateTo({
        url: '/pages/home/homePet/homePet'
      })
    } else if (num == 1) {
      wx.navigateTo({
        url: '/pages/home/homePet/homePet'
      })
    } else if (num == 2) {
      wx.navigateTo({
        url: '/pages/home/homePet/homePet'
      })
    } else if (num == 3) {
      wx.navigateTo({
        url: '/pages/my/AboutUs/AboutUs'
      })
    } else if (num == 4) {
      wx.navigateTo({
        url: '/pages/home/homePet/homePet'
      })
    } else if (num == 5) {
      wx.navigateTo({
        url: '/pages/home/homePet/homePet'
      })
    } else if (num == 6) {
      wx.navigateTo({
        url: '/pages/home/homePet/homePet'
      })
    } else if (num == 7) {
      wx.navigateTo({
        url: '/pages/home/homePet/homePet'
      })
    } else if (num == 8) {
      wx.navigateTo({
        url: '/pages/home/homePet/homePet'
      })
    } 
  },
  phone() {
    wx.makePhoneCall({
      phoneNumber: "10086",
    })
  },
  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },

  /**
   * 页面相关事件处理函数--监听用户下拉动作
   */
  onPullDownRefresh: function () {

  },

  /**
   * 页面上拉触底事件的处理函数
   */
  onReachBottom: function () {

  },

  /**
   * 用户点击右上角分享
   */
  onShareAppMessage: function () {

  }
})